package com.ncu.cloundeoffice.mapper;

import com.ncu.cloundeoffice.pojo.TSalary;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface TSalaryMapper {
    /**
     *  查询所有的工资账套
     * @return
     */
    List<TSalary> getAllTSalary();

    /**
     * 删除工资账套
     * @param id
     * @return
     */
    int deleteSalaryById(int id);

    /**
     * 添加工资账套
     * @param tSalary
     * @return
     */
    int addSalary(TSalary tSalary);

    /**
     * 更新工资账套
     * @param tSalary
     * @return
     */
    int updateSalary(TSalary tSalary);
}
